package com.cloud.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document
public class AttachmentFile implements Serializable {
	private static final long serialVersionUID = -8657469468192323550L;
	@Id
	private String id;
	private String orgi;
	private String creater;
	private String organ;
	private Date createtime = new Date();
	private Date updatetime = new Date();
	private String title;
	private String url;
	private int filelength;
	private boolean datastatus;
	private String filetype;
	private String fileid;
	private String dataid;
	private String modelid; // 功能模块的主数据ID， 例如，工单的回复 数据中，为了方便一次把所有的附件全部查询出来，避免关联查询，可以使用 modelid
	private String model;
	private boolean image;
}
